#!bin/bash/
#

read -p "用户名: " name
read -p "密码: " password

useradd $name
echo "$password" | passwd --stdin $name &> /dev/null

echo "用户${name}创建完成，初始密码是$password"
